import request from '@/utils/request'

export function getTreeData(data) {
  return request({
    url: '/api/v1/SysBusinessCategory/GetTree',
    method: 'get',
    params: data
  })
}

export function getStorageList() {
  var data = {};
  data["Type"] = 2;
  data["status"] = 1;
  data["pageIndex"] = 1;
  data["pageSize"] = 50000;
  return request({
    url: '/api/v1/Storage/GetList',
    method: 'get',
    params: data
  })
}

export function getStorageAreaList(data) {
  data["status"] = 1;
  data["pageIndex"] = 1;
  data["pageSize"] = 50000;
  return request({
    url: '/api/v1/StorageArea/GetList',
    method: 'get',
    params: data
  })
}

export function getSupplierList() {
  const data = {};
  data["status"] = 1;
  data["pageIndex"] = 1;
  data["pageSize"] = 50000;
  return request({
    url: '/api/v1/SysBusinessSupplier/GetList',
    method: 'get',
    params: data
  })
}

export const getUserListNoPage = params => request('/api/v1/PermissionUser/GetUserListNoPage', { params: params });

export const getCurrentUserInfo = params => request('/api/v1/PermissionUser/GetInfo', { params: params });

